#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#./mvnw clean package -Dmaven.test.skip=true -P aliyun,prod,scala-2.12,web,flink-1.14

# 编译 doc: https://www.dinky.org.cn/docs/next/deploy_guide/compile_deploy/
# 编译 doc: https://www.dinky.org.cn/docs/1.0/deploy_guide/compile_deploy

#cd /opt/dinky-source-code
# 编译打包 Profile, 注意 scala 支持 2.11 和 2.12, 请根据实际情况进行选择,jdk 支持 8/11,请根据实际情况进行选择,不选jdk11默认使用系统内的jdk8
#mvn clean package -DskipTests=true -P prod,jdk11,flink-single-version,aliyun,flink-1.16,web
#mvn clean package -DskipTests=true -P prod,jdk8,flink-single-version,aliyun,flink-1.18,web

mvn clean package -DskipTests=true -P prod,jdk8,flink-single-version,aliyun,flink-1.14,web

# dinky-1.0.3/build/dinky-release-1.14-1.0.3.tar.gz
